Ext.onReady(function() {
	function addWord(item) {
		var el = Ext.get(item);					
		var oldVal = el.dom.nextSibling.data;
		var author = oldVal.split(" ", 2);
		oldVal = oldVal.slice(author[0].length + author[1].length + 1);
		el.dom.firstChild.data = el.dom.firstChild.data + " " + author[1];
		Ext.get(item).dom.nextSibling.data = oldVal;
	}
	Ext.select("span.grip").on("mouseup", function(a, el, c) {
		var cmp = Ext.get(el).parent();
		addWord(cmp);
	})
});